﻿using System.ComponentModel;
using CozeDomain.Base;
using FreeSql.DataAnnotations;

namespace CozeDomain.Entities
{
    /// <summary>
    /// 分销员申请模型
    /// </summary>
    [Table(Name = "SaleApplyFor")]
    [Description("分销员申请")]
    public class SaleApplyForEntity : BaseTenantsEntity
    {
        /// <summary>
        /// 所属用户ID
        /// </summary>
        [Column(DbType = "varchar", StringLength = 36, IsNullable = false)]
        [Description("所属用户ID")]
        public string? UserId { get; set; }

        /// <summary>
        /// 填写联系方式
        /// </summary>
        [Column(DbType = "varchar", StringLength = 20, IsNullable = true)]
        [Description("填写联系方式")]
        public string? Link { get; set; }

        /// <summary>
        /// 返款方式：二维码收款（在我要提现设置），线下结算
        /// </summary>
        [Column(DbType = "varchar", StringLength = 20, IsNullable = true)]
        [Description("返款方式：二维码收款（在我要提现设置），线下结算")]
        public string? RefundMethod { get; set; }

        /// <summary>
        /// 申请原因
        /// </summary>
        [Column(DbType = "varchar", StringLength = 500, IsNullable = true)]
        [Description("申请原因")]
        public string? Reason { get; set; }

        /// <summary>
        /// 状态,0:审核中，1已通过，2已拒绝
        /// </summary>
        [Column(DbType = "bit", IsNullable = false)]
        [Description("状态")]
        public int? Status { get; set; }
    }
}
